/*
 */
package org.hook.showcase.concurrent.immutable;

import java.util.HashSet;
import java.util.Set;

import net.jcip.annotations.Immutable;

/**
 * @author suwuqiang 2011-12-6
 */
@Immutable
public final class TreeStooges {
	private final Set<String> stooges = new HashSet<String>();

	public TreeStooges() {
		this.stooges.add("A");
		this.stooges.add("B");
		this.stooges.add("C");
		this.stooges.add("D");
	}

	public boolean isStooges(String name) {
		return stooges.contains(name);
	}
}
